package chapter1;

import java.util.Scanner;

public class ExampleC_Runnian
{
    public static void main(String[] args)
    {
        //Scanner scanner = new Scanner(System.in);
        //int year = scanner.nextInt();
        for (int year = 2000;year<=2040;year++)
            if (isLeapYear(year))
                System.out.println(year + "是闰年");
        //else
        //    System.out.println(year + "不是闰年");
    }

    public static boolean isLeapYear(int year)
    {
        if (((year%4==0) && (year%100!=0)) || year%400==0)
            return true;
        else
            return false;
    }
}
